﻿@model string
@{
    bool IsSuccess = false;
    List<PeaceBlog.Models.Types.SocialBox> SocialBox = null;
    try
    {
        SocialBox = Newtonsoft.Json.JsonConvert.DeserializeObject<List<PeaceBlog.Models.Types.SocialBox>>(Model);
        IsSuccess = true;
    }
    catch
    {
        IsSuccess = false;
    }
}
<div class="prl-article-bottom clearfix">
    <div class="prl-article-share floatleft">
        @if (IsSuccess)
        {
            foreach (var social in SocialBox)
            {
                <a href="@social.Link" class="fa fa-@social.ClassName"></a>
            }
        }
    </div>
</div>

